#include<fstream>
#include<iostream>
#include<time.h>
using namespace std;

int main(int args, char* argvs[]){
    srand(time(0));
    cout << "Generating "<< argvs[1]<< " numbers" << endl;
    int number = atoi(argvs[1]);
    ofstream file;
    file.open("number.txt", ios_base::out);
    if(file.fail()){
        cout << "Open Error!" << endl;
        exit(0);
    }
    for(int i=0; i<number; ++i){
        file << (rand()%20001-10000);
        if(i!=(number-1))
            file << " ";
    }
}
